package com.ftg.learn.day09.homework;

/**
 * @author kangjx
 * @version 1.0
 * @date 2023/8/3 下午1:23
 */
public class AnimalDemo {

    Fly[] as = new Fly[]{
            new Bird(),
            new Fish()
    };

    public static void main(String[] args) {
        AnimalDemo a  = new AnimalDemo();
        a.as[0].fly();
        a.as[1].fly();
    }

}
